<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:if test="!contactList.isEmpty()">
<div id="table_content">
    <table>
        <thead>
        <tr>
            <th>Role</th>
            <th>Degree</th>
            <th>email</th>
            <th>Fax</th>
            <th>Phone</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <s:iterator value="contactList" status="index">
            <tr>
                <th><s:property value="role.descripcion"/></th>
                <th><s:property value="degree"/></th>
                <th><s:property value="email"/></th>
                <th><s:property value="fax"/></th>
                <th><s:property value="phone"/></th>
                <th>
                    <s:form method="POST" theme="simple">
                        <s:hidden value="%{id}" name="editContactPersonId"/>
                        <s:submit value="Edit" action="createContactPerson" />
                    </s:form>
                </th>
            </tr>
        </s:iterator>
        <tbody>
    </table>
</div>
</s:if>